package com.cw.japp

class Chat {

	Boolean delivered
	Date sent
	Long roomId
	byte[] message
	Integer status
	Date lastModifiedDate
	Date createdDate
	User usersByOwnerId
	User usersByUserId

	static belongsTo = [User]

	static mapping = {
		id column: "chat_id"
		version false
	}

	static constraints = {
		delivered nullable: true
		sent nullable: true
		roomId nullable: true
		message nullable: true
		status nullable: true
		lastModifiedDate nullable: true
		createdDate nullable: true
	}
}
